import { get, post } from '../request';
//登录
export const checkLogin = (data: any) => {
  return post('administrator/checklogin', data);
};
// 统计
export const countsAPI = () => {
  return get('repairs/getcounts');
};
// 待维修处理
export const repairsListAPI = (data: any) => {
  return get('repairs/list', data);
};
// 待投诉处理
export const questionsListAPI = (data: any) => {
  return get('questions/list', data);
};
//获取角色列表
export const administratorroleAPI = (data: any) => {
  return get('administratorrole/list', data);
};
//投诉总数
export const questionsGetCountsList = (data: any) => {
  return get('questions/getCountsList', data);
};
//报修总数
export const repairsGetCountsList = (data: any) => {
  return get('repairs/getCountsList', data);
};
// 获取权限功能列表;
export const menuList = (data: any) => {
  return get('menu/list', data);
};
//删除角色
export const roledeleteAPI = (data: any) => {
  return get('administratorrole/delete', data);
};
//添加角色
export const roleAddAPI = (data: any) => {
  return post('administratorrole/add', data);
};
